home *** CD-ROM | disk | FTP | other *** search
- extern int modload(char * filename);
- extern int modinit(int frequency);
- extern int modplay(void);
- extern int modpoll(void);
- extern int modstop(void);
-
- typedef unsigned char uchar;
- typedef unsigned int uint;
- typedef unsigned long ulong;
-
- typedef struct {
- uchar name[22];
- uint length;
- uchar finetune;
- uchar volume;
- uint reppnt;
- uint replen;
- } sample;
-
- typedef struct {
- uchar sampperiod;
- uchar period;
- uchar sampeffect;
- uchar effect;
- } note;
-
- typedef struct {
- uchar title[20];
- sample samples[31];
- uchar length;
- uchar protracker;
- uchar patterntable[128];
- uchar signature[4];
- } module;
-
- typedef struct {
- uchar * sampdata;
- uint sampnum;
- uint length;
- uint reppnt;
- uint replen;
- uint period;
- uchar volume;
- ulong ticks;
- } channel;
-